/**
 * Acta.java
 */

 /**
 *  AdSec: Administrador de Secundarias
 *  Copyright (C) 2009 Daniela Ramírez Chaves (dannyrch@gmail.com)
 *  Copyright (C) 2009 Leonel Salazar Valverde (leo87sv@gmail.com)
 *
 *  This file is part of AdSec.
 *  AdSec is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  AdSec is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with AdSec.  If not, see <http://www.gnu.org/licenses/>.
 */

package adsec.entidades;

import java.sql.Date;
import java.util.Calendar;
import adsec.negocios.UtilidadesCapaNegocios;


public class Acta {

    // <editor-fold defaultstate="collapsed" desc="Constantes de Nombres de Columnas">
    public static final String nombreTablaNC = "acta";
    public static final String anioNC = "anio";
    public static final String nivelNC = "nivel";
    public static final String seccionNC = "num_seccion";
    public static final String id_materiaNC = "id_materia";
    public static final String id_materia_cursadaNC = "id_materia_cursada";
    public static final String id_actaNC = "id_acta";
    public static final String cedulaNC = "cedula";
    public static final String fecha_creacionNC = "fecha_creacion";
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Atributos privados de la clase">
    private int anio;
    private int nivel;
    private int seccion;
    private int id_materia;
    private int id_materia_cursada;
    private int id_acta;
    private String cedula;
    private Date fecha_creacion;
    // </editor-fold>
    
    public static final int anioNulo = 1970;
    public static final int mesNulo = 1;
    public static final int diaNulo = 1;

    public Acta(){
        this.anio = Calendar.getInstance().get(Calendar.YEAR);
        this.nivel = 0;
        this.seccion = 0;
        this.id_materia = 0;
        this.id_materia_cursada = 0;
        this.id_acta = 0;
        this.cedula = UtilidadesCapaNegocios.CEDULA_INVALIDA;
        Calendar calendario = Calendar.getInstance();
        calendario.clear();
        calendario.set(anioNulo, mesNulo,diaNulo);
        this.fecha_creacion = new Date(calendario.getTimeInMillis());
    }//fin de constructor

    /**
     * @return the anio
     */
    public int getAnio() {
        return anio;
    }

    /**
     * @param anio the anio to set
     */
    public void setAnio(int anio) {
        this.anio = anio;
    }

    /**
     * @return the nivel
     */
    public int getNivel() {
        return nivel;
    }

    /**
     * @param nivel the nivel to set
     */
    public void setNivel(int nivel) {
        this.nivel = nivel;
    }

    /**
     * @return the seccion
     */
    public int getSeccion() {
        return seccion;
    }

    /**
     * @param seccion the seccion to set
     */
    public void setSeccion(int seccion) {
        this.seccion = seccion;
    }

    /**
     * @return the id_materia
     */
    public int getId_materia() {
        return id_materia;
    }

    /**
     * @param id_materia the id_materia to set
     */
    public void setId_materia(int id_materia) {
        this.id_materia = id_materia;
    }

    /**
     * @return the id_materia_cursada
     */
    public int getId_materia_cursada() {
        return id_materia_cursada;
    }

    /**
     * @param id_materia_cursada the id_materia_cursada to set
     */
    public void setId_materia_cursada(int id_materia_cursada) {
        this.id_materia_cursada = id_materia_cursada;
    }

    /**
     * @return the id_acta
     */
    public int getId_acta() {
        return id_acta;
    }

    /**
     * @param id_acta the id_acta to set
     */
    public void setId_acta(int id_acta) {
        this.id_acta = id_acta;
    }

    /**
     * @return the cedula
     */
    public String getCedula() {
        return cedula;
    }

    /**
     * @param cedula the cedula to set
     */
    public void setCedula(String cedula) {
        this.cedula = cedula;
    }

    /**
     * @return the fecha_creacion
     */
    public Date getFecha_creacion() {
        return fecha_creacion;
    }

    /**
     * @param fecha_creacion the fecha_creacion to set
     */
    public void setFecha_creacion(Date fecha_creacion) {
        this.fecha_creacion = fecha_creacion;
    }

}//fin de clase Acta
